package StudentCourse;

public class Teacher {
    //教师编号
    private String id;
    //教师姓名
    public static String name;
    //教师性别
    private String sex;
    //所受课程
    private String courseTaught;


    public Teacher(String teacher_id, String name_teacher, String sex_teacher, String courseTaught) {
        this.id = teacher_id;
        this.name = name_teacher;
        this.sex = sex_teacher;
        this.courseTaught = courseTaught;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getCourseTaught() {
        return courseTaught;
    }

    public void setCourseTaught(String courseTaught) {
        this.courseTaught = courseTaught;
    }
    public void classTeacher(){
      System.out.println("老师" + name + "在" + Courses.address + "上" + Courses.time + "的" + Courses.name +  "课");
   }
}

